package io;

import java.io.*;

public class Test {
    public static void main(String[] args) throws IOException {
        File file=new File("fos.txt");
        FileInputStream del=new FileInputStream(file);
        FileOutputStream sos =new  FileOutputStream(file);
        int D;
        for(int i=97;i<214;i++) {
            sos.write(i);
            D=del.read();
            System.out.println(D);
        }

        System.out.println("搞定");
        del.close();
        sos.close();
    }
}
